package cn.maihe.elg.operation.supports.bank.enums;

/**
 * @Description 招行银企业直连 请求方法名
 * @Author Alan
 * @Date 2024/11/12
 */
public enum CmbMethod {
    TrsQryByBreakPoint("账户交易信息查询", "trsQryByBreakPoint", "", "", false, true),
    ;
    /**
     * 接口统一标识码
     */
    private String methodId;
    /**
     * 调用方法：GET POST PUT
     */
    private String methodName;
    /**
     * 相对基础baseAPI的接口路径 PathVariable
     */
    private String pathUri;
    /**
     * 接口名称
     */
    private String pathName;
    /**
     * 是否开启防重参数
     */
    private Boolean forbidden;
    /**
     * 是否全报文加密
     */
    private Boolean encryption;

    CmbMethod(String pathName, String methodId, String methodName, String pathUri, Boolean forbidden, Boolean encryption) {
        this.methodId = methodId;
        this.methodName = methodName;
        this.pathUri = pathUri;
        this.pathName = pathName;
        this.forbidden = forbidden;
        this.encryption = encryption;
    }

    public String getPathUri() {
        return pathUri;
    }

    public String getPathName() {
        return pathName;
    }

    public String getMethodId() {
        return methodId;
    }

    public String getMethodName() {
        return methodName;
    }

    public Boolean getForbidden() {
        return forbidden;
    }

    public Boolean getEncryption() {
        return encryption;
    }

    @Override
    public String toString() {
        return String.format("[%s:%s:%s:%s:%s:%s]", pathName,methodId,methodName,pathUri,forbidden,encryption);
    }
}
